import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Contact from '@/components/tabbar-with-contact'
import Map from '@/components/tabbar-with-map.vue'
import Chat from '@/components/tabbar-with-chat.vue'
import xinwen from '@/components/xinwen.vue'
import liuyan from '@/components/liuyan.vue'
import shiping from '@/components/shiping.vue'
import bangzhu from '@/components/bangzhu.vue'
import shangping from '@/components/shangping.vue'
import tupian from '@/components/tupian.vue'
import Newsinof from '@/components/news/Newsinof'

Vue.use(Router)
export default new Router({
  routes: [{
    path: '/home',
    name: 'HelloWorld',
    component: HelloWorld
  }, {
    path: '/tabbar-with-contact',
    name: 'Contact',
    component: Contact
  }, {
    path: '/tabbar-with-map',
    name: 'Map',
    component: Map
  }, {
    path: '/tabbar-with-chat',
    name: 'Chat',
    component: Chat
  }, {
    path: '/xinwen',
    name: 'xinwen',
    component: xinwen
  }, {
    path: '/liuyan',
    name: 'liuyan',
    component: liuyan
  }, {
    path: '/shiping',
    name: 'shiping',
    component: shiping
  }, {
    path: '/shangping',
    name: 'shangping',
    component: shangping
  }, {
    path: '/bangzhu',
    name: 'bangzhu',
    component: bangzhu
  }, {
    path: '/tupian',
    name: 'tupian',
    component: tupian
  }, {
    path: '/xinwen/Newsinof/:id',
    name: 'Newsinof',
    component: Newsinof
  }, {
    path: '*',
    name: 'HelloWorld',
    redirect: '/home'
  }]
})
